package Demo1;
class Student{
    public String name;
    public int score;
    public int age;

    public Student(String name, int score, int age) {
        this.name = name;
        this.score = score;
        this.age = age;
    }

    @Override
    public String toString() {
        return "student{" +
                "name='" + name + '\'' +
                ", score=" + score +
                ", age=" + age +
                '}';
    }
}
public class Text {
    public static void main(String[] args) {
        Student[] students=new Student[3];
        students[0]=new Student("zhangsan",91,20);
        students[1]=new Student("lisi",898,19);
        students[2]=new Student("laowu",89,21);
    }
}
